package com.atguigu.gulimall.coupon;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * 1，使用 nacos 做服务发现：
 *      1)引入依赖
 *         <dependency>
 *             <groupId>com.alibaba.cloud</groupId>
 *             <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
 *         </dependency>
 *      2)下载nacos server ,windows 下直接双击startup.cmd，成功后访问127.0.0.1:8848/nacos ，即可看到管理页面
 *      3)在项目中配置nacos的服务器地址：spring-cloud-nacos-discovery-server-addr=127.0.0.1:8848
 *      4)指定项目名称：spring-application-name=gulimall-coupon
 *      5)在启动类上加入 @EnableDiscoveryClient注解
 */
@EnableDiscoveryClient
@SpringBootApplication
public class GulimallCouponApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallCouponApplication.class, args);
    }

}
